package com.lyf.task.domain;

import java.util.Date;

public class Product {

	private int pid;

	private String pname;

	private double price;

	private int degree;

	private String userName;

	@Override
	public String toString() {
		return "Product [pid=" + pid + ", pname=" + pname + ", price=" + price + ", degree=" + degree + ", userName="
				+ userName + ", tradeTimes=" + tradeTimes + ", lastTradeTime=" + lastTradeTime + ", pictureName="
				+ pictureName + ", pictureSrc=" + pictureSrc + "]";
	}

	private int tradeTimes;

	private Date lastTradeTime;

	private String pictureName;

	private String pictureSrc;

	public Product(int pid, String pname, double price, int degree, String userName, int tradeTimes, Date lastTradeTime,
			String pictureName, String pictureSrc) {
		super();
		this.pid = pid;
		this.pname = pname;
		this.price = price;
		this.degree = degree;
		this.userName = userName;
		this.tradeTimes = tradeTimes;
		this.lastTradeTime = lastTradeTime;
		this.pictureName = pictureName;
		this.pictureSrc = pictureSrc;
	}

	public String getPictureSrc() {
		return pictureSrc;
	}

	public void setPictureSrc(String pictureSrc) {
		this.pictureSrc = pictureSrc;
	}

	public Product() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Product(int pid, String pname, double price, int degree, String userName, int tradeTimes, Date lastTradeTime,
			String pictureName) {
		super();
		this.pid = pid;
		this.pname = pname;
		this.price = price;
		this.degree = degree;
		this.userName = userName;
		this.tradeTimes = tradeTimes;
		this.lastTradeTime = lastTradeTime;
		this.pictureName = pictureName;
	}

	public int getPid() {
		return pid;
	}

	public String getPname() {
		return pname;
	}

	public double getPrice() {
		return price;
	}

	public int getDegree() {
		return degree;
	}

	public String getUserName() {
		return userName;
	}

	public int getTradeTimes() {
		return tradeTimes;
	}

	public Date getLastTradeTime() {
		return lastTradeTime;
	}

	public String getPictureName() {
		return pictureName;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public void setDegree(int degree) {
		this.degree = degree;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setTradeTimes(int tradeTimes) {
		this.tradeTimes = tradeTimes;
	}

	public void setLastTradeTime(Date lastTradeTime) {
		this.lastTradeTime = lastTradeTime;
	}

	public void setPictureName(String pictureName) {
		this.pictureName = pictureName;
	}

}